package com.castle.fortress.admin.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.cms.entity.CmsBannerEntity;
import com.castle.fortress.admin.cms.entity.CmsChannelEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
/**
 * cms栏目/导航菜单配置表Mapper 接口
 *
 * @author castle
 * @since 2022-03-09
 */
public interface CmsChannelMapper extends BaseMapper<CmsChannelEntity> {


	List<CmsBannerEntity> cmsTagListCmsChannel(@Param("map")Map<String, Object> map);

    /**
     * 同步子集的审核状态
     * @param id
     * @param auditflag
     */
    void synchSub(@Param("id")Long id, @Param("auditflag")Boolean auditflag);

    /**
     *
     * @param roldIds
     * @return
     */
    List<CmsChannelEntity> authList(@Param("roldIds")List<Long> roldIds);
}

